namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 设备 - 扫描设备
    /// </summary>
    public DbSet<PORcsEquipScanner> RcsEquipScanners { get; set; }
}

/// <summary>
/// 设备 - 扫描设备
/// 表[rcs_equip_scanner]
/// </summary>
[Table("rcs_equip_scanner")]
public class PORcsEquipScanner
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[rcs_equip_scanner.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 条码号
    /// [rcs_equip_scanner.barcode)]
    /// </summary>
    [Column("barcode")]
    public string Barcode { get; set; }
    /// <summary>
    /// 最后一次成对标志【1：一次；2：已成双】
    /// [rcs_equip_scanner.last_sign)]
    /// </summary>
    [Column("last_sign")]
    public int? LastSign { get; set; }
    /// <summary>
    /// 最后一次扫描物料Id
    /// [rcs_equip_scanner.last_material)]
    /// </summary>
    [Column("last_material")]
    public long? LastMaterial { get; set; }
    /// <summary>
    /// 最后一次扫描时间
    /// [rcs_equip_scanner.last_time)]
    /// </summary>
    [Column("last_time")]
    public DateTime? LastTime { get; set; }
    /// <summary>
    /// 最后一次目标位置
    /// [rcs_equip_scanner.last_target_loc)]
    /// </summary>
    [Column("last_target_loc")]
    public long? LastTargetLoc { get; set; }
    /// <summary>
    /// [rcs_equip_scanner.next_scanner_loc)]
    /// </summary>
    [Column("next_scanner_loc")]
    public long? NextScannerLoc { get; set; }
    /// <summary>
    /// 扫描总数
    /// [rcs_equip_scanner.total_num)]
    /// </summary>
    [Column("total_num")]
    public long? TotalNum { get; set; }
    /// <summary>
    /// 是否直运扫描（0：否；1：是）
    /// [rcs_equip_scanner.is_direct_delivery)]
    /// </summary>
    [Column("is_direct_delivery")]
    public int? IsDirectDelivery { get; set; }
    /// <summary>
    /// 设置为直运扫描时间
    /// [rcs_equip_scanner.direct_delivery_time)]
    /// </summary>
    [Column("direct_delivery_time")]
    public DateTime? DirectDeliveryTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [rcs_equip_scanner.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [rcs_equip_scanner.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [rcs_equip_scanner.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
}
